home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7338 < prev    next >
Encoding:
Text File  |  1996-08-05  |  906 b   |  31 lines

  1. Path: sun001.spd.dsccc.com!spd!jmccarty
  2. From: jmccarty@spd.dsccc.com (Mike McCarty)
  3. Newsgroups: comp.arch.arithmetic,comp.lang.c,comp.lang.c++
  4. Subject: Re: Access carry flag from C
  5. Date: 22 Feb 1996 19:55:04 GMT
  6. Organization: DSC Communications Corporation, Plano, Texas USA
  7. Message-ID: <4gihmo$2v1@sun001.spd.dsccc.com>
  8. References: <Dn1C9z.DGv.0.net@indra.com>
  9. NNTP-Posting-Host: aplo139.spd.dsccc.com
  10.  
  11. In article <Dn1C9z.DGv.0.net@indra.com>,
  12. Steve Sullivan <sullivan@indra.com> wrote:
  13. )Is it possible to determine if a fixed point overflow has
  14. )occurred from within C?  For example:
  15. )   i = j + k;
  16. )   if (overflowed) ....;
  17. )
  18. )Many thanks for any suggestions -
  19. )
  20. )Steve Sullivan
  21.  
  22. Yes, it is possible. It is not fast, nor is it portable between
  23. machines.
  24.  
  25. Mike
  26.  
  27. ----
  28. char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
  29.  
  30. I don't speak for DSC.         <- They make me say that.
  31.